package com.flywen.generator;

import java.io.IOException;

public class MapperMaker {
    private ParserInfo parserInfo;

    public MapperMaker(ParserInfo parserInfo) {
        this.parserInfo = parserInfo;
    }

    public void makeInterface() throws Exception, IOException {
        Utils.writeContentToFile(Utils.createFile(this.parserInfo.getDaoPackage(), this.parserInfo.getDaoName(), ".java"), Utils.generateDaoContent(this.parserInfo, "MapperTemplate.ftl"));
    }
}